package com.ruoyi.platform.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 充值流水对象 t_recharge_flow
 * 
 * @author ruoyi
 * @date 2025-08-20
 */
public class TRechargeFlow extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 充值流水ID */
    private Long flowId;

    /** 充值流水号 */
    @Excel(name = "充值流水号")
    private String rechargeFlowNumber;

    /** 用户名 */
    @Excel(name = "用户名")
    private String userName;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String userPhone;

    /** 用户类型 */
    @Excel(name = "用户类型")
    private String userType;

    /** 充值时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "充值时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date rechargeTime;

    /** 充值金额 */
    @Excel(name = "充值金额")
    private BigDecimal rechargePrincipal;

    /** 赠送金额（元） */
    @Excel(name = "赠送金额", readConverterExp = "元=")
    private BigDecimal giftAmount;

    /** 充值折扣 */
    @Excel(name = "充值折扣")
    private BigDecimal rechargeDiscount;

    /** 第三方流水号 */
    @Excel(name = "第三方流水号")
    private String thirdPartyFlowNumber;

    /** 充值渠道 */
    @Excel(name = "充值渠道")
    private String rechargeChannel;

    /** 行程订单号 */
    private String orderNumber;

    /** 退款原因 */
    private String refundReason;

    public void setFlowId(Long flowId) 
    {
        this.flowId = flowId;
    }

    public Long getFlowId() 
    {
        return flowId;
    }

    public void setRechargeFlowNumber(String rechargeFlowNumber) 
    {
        this.rechargeFlowNumber = rechargeFlowNumber;
    }

    public String getRechargeFlowNumber() 
    {
        return rechargeFlowNumber;
    }

    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }

    public void setUserPhone(String userPhone) 
    {
        this.userPhone = userPhone;
    }

    public String getUserPhone() 
    {
        return userPhone;
    }

    public void setUserType(String userType) 
    {
        this.userType = userType;
    }

    public String getUserType() 
    {
        return userType;
    }

    public void setRechargeTime(Date rechargeTime) 
    {
        this.rechargeTime = rechargeTime;
    }

    public Date getRechargeTime() 
    {
        return rechargeTime;
    }

    public void setRechargePrincipal(BigDecimal rechargePrincipal) 
    {
        this.rechargePrincipal = rechargePrincipal;
    }

    public BigDecimal getRechargePrincipal() 
    {
        return rechargePrincipal;
    }

    public void setGiftAmount(BigDecimal giftAmount) 
    {
        this.giftAmount = giftAmount;
    }

    public BigDecimal getGiftAmount() 
    {
        return giftAmount;
    }

    public void setRechargeDiscount(BigDecimal rechargeDiscount) 
    {
        this.rechargeDiscount = rechargeDiscount;
    }

    public BigDecimal getRechargeDiscount() 
    {
        return rechargeDiscount;
    }

    public void setThirdPartyFlowNumber(String thirdPartyFlowNumber) 
    {
        this.thirdPartyFlowNumber = thirdPartyFlowNumber;
    }

    public String getThirdPartyFlowNumber() 
    {
        return thirdPartyFlowNumber;
    }

    public void setRechargeChannel(String rechargeChannel) 
    {
        this.rechargeChannel = rechargeChannel;
    }

    public String getRechargeChannel() 
    {
        return rechargeChannel;
    }

    public void setOrderNumber(String orderNumber) 
    {
        this.orderNumber = orderNumber;
    }

    public String getOrderNumber() 
    {
        return orderNumber;
    }

    public void setRefundReason(String refundReason) 
    {
        this.refundReason = refundReason;
    }

    public String getRefundReason() 
    {
        return refundReason;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("flowId", getFlowId())
            .append("rechargeFlowNumber", getRechargeFlowNumber())
            .append("userName", getUserName())
            .append("userPhone", getUserPhone())
            .append("userType", getUserType())
            .append("rechargeTime", getRechargeTime())
            .append("rechargePrincipal", getRechargePrincipal())
            .append("giftAmount", getGiftAmount())
            .append("rechargeDiscount", getRechargeDiscount())
            .append("thirdPartyFlowNumber", getThirdPartyFlowNumber())
            .append("rechargeChannel", getRechargeChannel())
            .append("orderNumber", getOrderNumber())
            .append("refundReason", getRefundReason())
            .toString();
    }
}
